package com.gxl.butt.utils;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by cangya4 on 2017/4/25.
 */
public class JSONUtils {
    public static JSONObject getRoot(int code, String msg, Object data) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("error_code", code);
        jsonObject.put("msg", msg);
        jsonObject.put("data", data);
        return jsonObject;
    }
}
